
<!-- 
  App-2.vue
  历史记录
-->
<template>
  <div>

    <router-view></router-view>
    
    <button  style="margin-left: 10px" @click="next()">next</button>
    <button  style="margin-left: 10px" @click="prev()">prev</button>

  </div>
</template>

<script setup lang="ts">

import { useRouter } from 'vue-router'

const router = useRouter()

const next = () => {
  router.go(1)
}
const prev = () => {
  router.back()
}



</script>
<style scoped>

</style>
